import Main from '@/components/main';

export const supplier = [
  {
    path: '/supplier',
    name: 'Supplier',
    component: Main,
    meta: {
      title: '供应商管理',
      icon: 'ios-contacts'
    },
    children: [
      {
        path: '/supplier/supplier-list',
        name: 'SupplierList',
        meta: {
          title: '供应商列表',
          // icon: 'ios-contacts',
          privilege: [
            { title: '查询', name: 'supplier-query' },
            { title: '新增', name: 'supplier-add' },
            { title: '编辑', name: 'supplier-update' },
            { title: '删除', name: 'supplier-delete' }
          ]
        },
        component: () => import('@/views/supplier/supplier/supplier-list.vue')
      },
      {
        path: '/supplier/supplier-tag-list',
        name: 'SupplierTagList',
        meta: {
          title: '供应商标签',
          // icon: 'md-contacts',
          privilege: [
            { title: '查询', name: 'supplier-tag-query' },
            { title: '新增', name: 'supplier-tag-add' },
            { title: '编辑', name: 'supplier-tag-update' },
            { title: '删除', name: 'supplier-tag-delete' }
          ]
        },
        component: () => import('@/views/supplier/suppliertag/supplier-tag-list.vue')
      },
      {
        path: '/supplier/supplier-catgegory-list',
        name: 'SupplierCategoryList',
        meta: {
          title: '供应商类型',
          // icon: 'ios-contacts',
          privilege: [
            { title: '查询', name: 'supplier-category-query' },
            { title: '新增', name: 'supplier-category-add' },
            { title: '编辑', name: 'supplier-category-update' },
            { title: '删除', name: 'supplier-category-delete' }
          ]
        },
        component: () => import('@/views/supplier/suppliercategory/supplier-category-list.vue')
      }
    ]
  }
];
